home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / forms / frmwiz / global.bas < prev    next >
BASIC Source File  |  1994-12-04  |  42KB  |  1,215 lines

  1. Option Explicit
  2. ''''''''''''''''''''''''''''
  3. ' Visual Basic global constant file. This file can be loaded
  4. ' into a code module.
  5. '
  6. ' Some constants are commented out because they have
  7. ' duplicates (e.g., NONE appears several places).
  8. '
  9. ' If you are updating a Visual Basic application written with
  10. ' an older version, you should replace your global constants
  11. ' with the constants in this file.
  12. '
  13. ''''''''''''''''''''''''''''
  14.  
  15. ' General
  16.  
  17. ' Clipboard formats
  18. Global Const CF_LINK = &HBF00
  19. Global Const CF_TEXT = 1
  20. Global Const CF_BITMAP = 2
  21. Global Const CF_METAFILE = 3
  22. Global Const CF_DIB = 8
  23. Global Const CF_PALETTE = 9
  24.  
  25. ' DragOver
  26. Global Const ENTER = 0
  27. Global Const LEAVE = 1
  28. Global Const OVER = 2
  29.  
  30. ' Drag (controls)
  31. Global Const CANCEL = 0
  32. Global Const BEGIN_DRAG = 1
  33. Global Const END_DRAG = 2
  34.  
  35. ' Show parameters
  36. Global Const MODAL = 1
  37. Global Const MODELESS = 0
  38.  
  39. ' Arrange Method
  40. ' for MDI Forms
  41. Global Const CASCADE = 0
  42. Global Const TILE_HORIZONTAL = 1
  43. Global Const TILE_VERTICAL = 2
  44. Global Const ARRANGE_ICONS = 3
  45.  
  46. 'ZOrder Method
  47. Global Const BRINGTOFRONT = 0
  48. Global Const SENDTOBACK = 1
  49.  
  50. ' Key Codes
  51. Global Const KEY_LBUTTON = &H1
  52. Global Const KEY_RBUTTON = &H2
  53. Global Const KEY_CANCEL = &H3
  54. Global Const KEY_MBUTTON = &H4    ' NOT contiguous with L & RBUTTON
  55. Global Const KEY_BACK = &H8
  56. Global Const KEY_TAB = &H9
  57. Global Const KEY_CLEAR = &HC
  58. Global Const KEY_RETURN = &HD
  59. Global Const KEY_SHIFT = &H10
  60. Global Const KEY_CONTROL = &H11
  61. Global Const KEY_MENU = &H12
  62. Global Const KEY_PAUSE = &H13
  63. Global Const KEY_CAPITAL = &H14
  64. Global Const KEY_ESCAPE = &H1B
  65. Global Const KEY_SPACE = &H20
  66. Global Const KEY_PRIOR = &H21
  67. Global Const KEY_NEXT = &H22
  68. Global Const KEY_END = &H23
  69. Global Const KEY_HOME = &H24
  70. Global Const KEY_LEFT = &H25
  71. Global Const KEY_UP = &H26
  72. Global Const KEY_RIGHT = &H27
  73. Global Const KEY_DOWN = &H28
  74. Global Const KEY_SELECT = &H29
  75. Global Const KEY_PRINT = &H2A
  76. Global Const KEY_EXECUTE = &H2B
  77. Global Const KEY_SNAPSHOT = &H2C
  78. Global Const KEY_INSERT = &H2D
  79. Global Const KEY_DELETE = &H2E
  80. Global Const KEY_HELP = &H2F
  81.  
  82. ' KEY_A thru KEY_Z are the same as their ASCII equivalents: 'A' thru 'Z'
  83. ' KEY_0 thru KEY_9 are the same as their ASCII equivalents: '0' thru '9'
  84.  
  85. Global Const KEY_NUMPAD0 = &H60
  86. Global Const KEY_NUMPAD1 = &H61
  87. Global Const KEY_NUMPAD2 = &H62
  88. Global Const KEY_NUMPAD3 = &H63
  89. Global Const KEY_NUMPAD4 = &H64
  90. Global Const KEY_NUMPAD5 = &H65
  91. Global Const KEY_NUMPAD6 = &H66
  92. Global Const KEY_NUMPAD7 = &H67
  93. Global Const KEY_NUMPAD8 = &H68
  94. Global Const KEY_NUMPAD9 = &H69
  95. Global Const KEY_MULTIPLY = &H6A
  96. Global Const KEY_ADD = &H6B
  97. Global Const KEY_SEPARATOR = &H6C
  98. Global Const KEY_SUBTRACT = &H6D
  99. Global Const KEY_DECIMAL = &H6E
  100. Global Const KEY_DIVIDE = &H6F
  101. Global Const KEY_F1 = &H70
  102. Global Const KEY_F2 = &H71
  103. Global Const KEY_F3 = &H72
  104. Global Const KEY_F4 = &H73
  105. Global Const KEY_F5 = &H74
  106. Global Const KEY_F6 = &H75
  107. Global Const KEY_F7 = &H76
  108. Global Const KEY_F8 = &H77
  109. Global Const KEY_F9 = &H78
  110. Global Const KEY_F10 = &H79
  111. Global Const KEY_F11 = &H7A
  112. Global Const KEY_F12 = &H7B
  113. Global Const KEY_F13 = &H7C
  114. Global Const KEY_F14 = &H7D
  115. Global Const KEY_F15 = &H7E
  116. Global Const KEY_F16 = &H7F
  117.  
  118. Global Const KEY_NUMLOCK = &H90
  119.  
  120. ' Variant VarType tags
  121.  
  122. Global Const V_EMPTY = 0
  123. Global Const V_NULL = 1
  124. Global Const V_INTEGER = 2
  125. Global Const V_LONG = 3
  126. Global Const V_SINGLE = 4
  127. Global Const V_DOUBLE = 5
  128. Global Const V_CURRENCY = 6
  129. Global Const V_DATE = 7
  130. Global Const V_STRING = 8
  131.  
  132.  
  133. ' Event Parameters
  134.  
  135. ' ErrNum (LinkError)
  136. Global Const WRONG_FORMAT = 1
  137. Global Const DDE_SOURCE_CLOSED = 6
  138. Global Const TOO_MANY_LINKS = 7
  139. Global Const DATA_TRANSFER_FAILED = 8
  140.  
  141. ' QueryUnload
  142. Global Const FORM_CONTROLMENU = 0
  143. Global Const FORM_CODE = 1
  144. Global Const APP_WINDOWS = 2
  145. Global Const APP_TASKMANAGER = 3
  146. Global Const FORM_MDIFORM = 4
  147.  
  148. ' Properties
  149.  
  150. ' Colors
  151. Global Const BLACK = &H0&
  152. Global Const RED = &HFF&
  153. Global Const GREEN = &HFF00&
  154. Global Const YELLOW = &HFFFF&
  155. Global Const BLUE = &HFF0000
  156. Global Const MAGENTA = &HFF00FF
  157. Global Const CYAN = &HFFFF00
  158. Global Const WHITE = &HFFFFFF
  159.  
  160. ' System Colors
  161. Global Const SCROLL_BARS = &H80000000           ' Scroll-bars gray area.
  162. Global Const DESKTOP = &H80000001               ' Desktop.
  163. Global Const ACTIVE_TITLE_BAR = &H80000002      ' Active window caption.
  164. Global Const INACTIVE_TITLE_BAR = &H80000003    ' Inactive window caption.
  165. Global Const MENU_BAR = &H80000004              ' Menu background.
  166. Global Const WINDOW_BACKGROUND = &H80000005     ' Window background.
  167. Global Const WINDOW_FRAME = &H80000006          ' Window frame.
  168. Global Const MENU_TEXT = &H80000007             ' Text in menus.
  169. Global Const WINDOW_TEXT = &H80000008           ' Text in windows.
  170. Global Const TITLE_BAR_TEXT = &H80000009        ' Text in caption, size box, scroll-bar arrow box..
  171. Global Const ACTIVE_BORDER = &H8000000A         ' Active window border.
  172. Global Const INACTIVE_BORDER = &H8000000B       ' Inactive window border.
  173. Global Const APPLICATION_WORKSPACE = &H8000000C ' Background color of multiple document interface (MDI) applications.
  174. Global Const HIGHLIGHT = &H8000000D             ' Items selected item in a control.
  175. Global Const HIGHLIGHT_TEXT = &H8000000E        ' Text of item selected in a control.
  176. Global Const BUTTON_FACE = &H8000000F           ' Face shading on command buttons.
  177. Global Const BUTTON_SHADOW = &H80000010         ' Edge shading on command buttons.
  178. Global Const GRAY_TEXT = &H80000011             ' Grayed (disabled) text.  This color is set to 0 if the current display driver does not support a solid gray color.
  179. Global Const BUTTON_TEXT = &H80000012           ' Text on push buttons.
  180.  
  181. ' Enumerated Types
  182.  
  183. ' Align (picture box)
  184. Global Const NONE = 0
  185. Global Const ALIGN_TOP = 1
  186. Global Const ALIGN_BOTTOM = 2
  187.  
  188. ' Alignment
  189. Global Const LEFT_JUSTIFY = 0  ' 0 - Left Justify
  190. Global Const RIGHT_JUSTIFY = 1 ' 1 - Right Justify
  191. Global Const CENTER = 2        ' 2 - Center
  192.  
  193. ' BorderStyle (form)
  194. 'Global Const NONE = 0          ' 0 - None
  195. Global Const FIXED_SINGLE = 1   ' 1 - Fixed Single
  196. Global Const SIZABLE = 2        ' 2 - Sizable (Forms only)
  197. Global Const FIXED_DOUBLE = 3   ' 3 - Fixed Double (Forms only)
  198.  
  199. ' BorderStyle (Shape and Line)
  200. 'Global Const TRANSPARENT = 0    '0 - Transparent
  201. 'Global Const SOLID = 1          '1 - Solid
  202. 'Global Const DASH = 2         ' 2 - Dash
  203. 'Global Const DOT = 3          ' 3 - Dot
  204. 'Global Const DASH_DOT = 4     ' 4 - Dash-Dot
  205. 'Global Const DASH_DOT_DOT = 5 ' 5 - Dash-Dot-Dot
  206. 'Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid
  207.  
  208. ' MousePointer
  209. Global Const DEFAULT = 0        ' 0 - Default
  210. Global Const ARROW = 1          ' 1 - Arrow
  211. Global Const CROSSHAIR = 2      ' 2 - Cross
  212. Global Const IBEAM = 3          ' 3 - I-Beam
  213. Global Const ICON_POINTER = 4   ' 4 - Icon
  214. Global Const SIZE_POINTER = 5   ' 5 - Size
  215. Global Const SIZE_NE_SW = 6     ' 6 - Size NE SW
  216. Global Const SIZE_N_S = 7       ' 7 - Size N S
  217. Global Const SIZE_NW_SE = 8     ' 8 - Size NW SE
  218. Global Const SIZE_W_E = 9       ' 9 - Size W E
  219. Global Const UP_ARROW = 10      ' 10 - Up Arrow
  220. Global Const HOURGLASS = 11     ' 11 - Hourglass
  221. Global Const NO_DROP = 12       ' 12 - No drop
  222.  
  223. ' DragMode
  224. Global Const MANUAL = 0    ' 0 - Manual
  225. Global Const AUTOMATIC = 1 ' 1 - Automatic
  226.  
  227. ' DrawMode
  228. Global Const BLACKNESS = 1      ' 1 - Blackness
  229. Global Const NOT_MERGE_PEN = 2  ' 2 - Not Merge Pen
  230. Global Const MASK_NOT_PEN = 3   ' 3 - Mask Not Pen
  231. Global Const NOT_COPY_PEN = 4   ' 4 - Not Copy Pen
  232. Global Const MASK_PEN_NOT = 5   ' 5 - Mask Pen Not
  233. Global Const INVERT = 6         ' 6 - Invert
  234. Global Const XOR_PEN = 7        ' 7 - Xor Pen
  235. Global Const NOT_MASK_PEN = 8   ' 8 - Not Mask Pen
  236. Global Const MASK_PEN = 9       ' 9 - Mask Pen
  237. Global Const NOT_XOR_PEN = 10   ' 10 - Not Xor Pen
  238. Global Const NOP = 11           ' 11 - Nop
  239. Global Const MERGE_NOT_PEN = 12 ' 12 - Merge Not Pen
  240. Global Const COPY_PEN = 13      ' 13 - Copy Pen
  241. Global Const MERGE_PEN_NOT = 14 ' 14 - Merge Pen Not
  242. Global Const MERGE_PEN = 15     ' 15 - Merge Pen
  243. Global Const WHITENESS = 16     ' 16 - Whiteness
  244.  
  245. ' DrawStyle
  246. Global Const SOLID = 0        ' 0 - Solid
  247. Global Const DASH = 1         ' 1 - Dash
  248. Global Const DOT = 2          ' 2 - Dot
  249. Global Const DASH_DOT = 3     ' 3 - Dash-Dot
  250. Global Const DASH_DOT_DOT = 4 ' 4 - Dash-Dot-Dot
  251. Global Const INVISIBLE = 5    ' 5 - Invisible
  252. Global Const INSIDE_SOLID = 6 ' 6 - Inside Solid
  253.  
  254. ' FillStyle
  255. ' Global Const SOLID = 0           ' 0 - Solid
  256. Global Const TRANSPARENT = 1       ' 1 - Transparent
  257. Global Const HORIZONTAL_LINE = 2   ' 2 - Horizontal Line
  258. Global Const VERTICAL_LINE = 3     ' 3 - Vertical Line
  259. Global Const UPWARD_DIAGONAL = 4   ' 4 - Upward Diagonal
  260. Global Const DOWNWARD_DIAGONAL = 5 ' 5 - Downward Diagonal
  261. Global Const CROSS = 6             ' 6 - Cross
  262. Global Const DIAGONAL_CROSS = 7    ' 7 - Diagonal Cross
  263.  
  264. ' LinkMode (forms and controls)
  265. ' Global Const NONE = 0         ' 0 - None
  266. Global Const LINK_SOURCE = 1    ' 1 - Source (forms only)
  267. Global Const LINK_AUTOMATIC = 1 ' 1 - Automatic (controls only)
  268. Global Const LINK_MANUAL = 2    ' 2 - Manual (controls only)
  269. Global Const LINK_NOTIFY = 3    ' 3 - Notify (controls only)
  270.  
  271. ' LinkMode (kept for VB1.0 compatibility, use new constants instead)
  272. Global Const HOT = 1    ' 1 - Hot (controls only)
  273. Global Const SERVER = 1 ' 1 - Server (forms only)
  274. Global Const COLD = 2   ' 2 - Cold (controls only)
  275.  
  276.  
  277. ' ScaleMode
  278. Global Const USER = 0        ' 0 - User
  279. Global Const TWIPS = 1       ' 1 - Twip
  280. Global Const POINTS = 2      ' 2 - Point
  281. Global Const PIXELS = 3      ' 3 - Pixel
  282. Global Const CHARACTERS = 4  ' 4 - Character
  283. Global Const INCHES = 5      ' 5 - Inch
  284. Global Const MILLIMETERS = 6 ' 6 - Millimeter
  285. Global Const CENTIMETERS = 7 ' 7 - Centimeter
  286.  
  287. ' ScrollBar
  288. ' Global Const NONE     = 0 ' 0 - None
  289. Global Const HORIZONTAL = 1 ' 1 - Horizontal
  290. Global Const VERTICAL = 2   ' 2 - Vertical
  291. Global Const BOTH = 3       ' 3 - Both
  292.  
  293. ' Shape
  294. Global Const SHAPE_RECTANGLE = 0
  295. Global Const SHAPE_SQUARE = 1
  296. Global Const SHAPE_OVAL = 2
  297. Global Const SHAPE_CIRCLE = 3
  298. Global Const SHAPE_ROUNDED_RECTANGLE = 4
  299. Global Const SHAPE_ROUNDED_SQUARE = 5
  300.  
  301. ' WindowState
  302. Global Const NORMAL = 0    ' 0 - Normal
  303. Global Const MINIMIZED = 1 ' 1 - Minimized
  304. Global Const MAXIMIZED = 2 ' 2 - Maximized
  305.  
  306. ' Check Value
  307. Global Const UNCHECKED = 0 ' 0 - Unchecked
  308. Global Const CHECKED = 1   ' 1 - Checked
  309. Global Const GRAYED = 2    ' 2 - Grayed
  310.  
  311. ' Shift parameter masks
  312. Global Const SHIFT_MASK = 1
  313. Global Const CTRL_MASK = 2
  314. Global Const ALT_MASK = 4
  315.  
  316. ' Button parameter masks
  317. Global Const LEFT_BUTTON = 1
  318. Global Const RIGHT_BUTTON = 2
  319. Global Const MIDDLE_BUTTON = 4
  320.  
  321. ' Function Parameters
  322. ' MsgBox parameters
  323. Global Const MB_OK = 0                 ' OK button only
  324. Global Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  325. Global Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  326. Global Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  327. Global Const MB_YESNO = 4              ' Yes and No buttons
  328. Global Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  329.  
  330. Global Const MB_ICONSTOP = 16          ' Critical message
  331. Global Const MB_ICONQUESTION = 32      ' Warning query
  332. Global Const MB_ICONEXCLAMATION = 48   ' Warning message
  333. Global Const MB_ICONINFORMATION = 64   ' Information message
  334.  
  335. Global Const MB_APPLMODAL = 0          ' Application Modal Message Box
  336. Global Const MB_DEFBUTTON1 = 0         ' First button is default
  337. Global Const MB_DEFBUTTON2 = 256       ' Second button is default
  338. Global Const MB_DEFBUTTON3 = 512       ' Third button is default
  339. Global Const MB_SYSTEMMODAL = 4096      'System Modal
  340.  
  341. ' MsgBox return values
  342. Global Const IDOK = 1                  ' OK button pressed
  343. Global Const IDCANCEL = 2              ' Cancel button pressed
  344. Global Const IDABORT = 3               ' Abort button pressed
  345. Global Const IDRETRY = 4               ' Retry button pressed
  346. Global Const IDIGNORE = 5              ' Ignore button pressed
  347. Global Const IDYES = 6                 ' Yes button pressed
  348. Global Const IDNO = 7                  ' No button pressed
  349.  
  350. ' SetAttr, Dir, GetAttr functions
  351. Global Const ATTR_NORMAL = 0
  352. Global Const ATTR_READONLY = 1
  353. Global Const ATTR_HIDDEN = 2
  354. Global Const ATTR_SYSTEM = 4
  355. Global Const ATTR_VOLUME = 8
  356. Global Const ATTR_DIRECTORY = 16
  357. Global Const ATTR_ARCHIVE = 32
  358.  
  359. 'Grid
  360. 'ColAlignment,FixedAlignment Properties
  361. Global Const GRID_ALIGNLEFT = 0
  362. Global Const GRID_ALIGNRIGHT = 1
  363. Global Const GRID_ALIGNCENTER = 2
  364.  
  365. 'Fillstyle Property
  366. Global Const GRID_SINGLE = 0
  367. Global Const GRID_REPEAT = 1
  368.  
  369.  
  370. 'Data control
  371. 'Error event Response arguments
  372. Global Const DATA_ERRCONTINUE = 0
  373. Global Const DATA_ERRDISPLAY = 1
  374.  
  375. 'Editmode property values
  376. Global Const DATA_EDITNONE = 0
  377. Global Const DATA_EDITMODE = 1
  378. Global Const DATA_EDITADD = 2
  379.  
  380. ' Options property values
  381. Global Const DATA_DENYWRITE = &H1
  382. Global Const DATA_DENYREAD = &H2
  383. Global Const DATA_READONLY = &H4
  384. Global Const DATA_APPENDONLY = &H8
  385. Global Const DATA_INCONSISTENT = &H10
  386. Global Const DATA_CONSISTENT = &H20
  387. Global Const DATA_SQLPASSTHROUGH = &H40
  388.  
  389. 'Validate event Action arguments
  390. Global Const DATA_ACTIONCANCEL = 0
  391. Global Const DATA_ACTIONMOVEFIRST = 1
  392. Global Const DATA_ACTIONMOVEPREVIOUS = 2
  393. Global Const DATA_ACTIONMOVENEXT = 3
  394. Global Const DATA_ACTIONMOVELAST = 4
  395. Global Const DATA_ACTIONADDNEW = 5
  396. Global Const DATA_ACTIONUPDATE = 6
  397. Global Const DATA_ACTIONDELETE = 7
  398. Global Const DATA_ACTIONFIND = 8
  399. Global Const DATA_ACTIONBOOKMARK = 9
  400. Global Const DATA_ACTIONCLOSE = 10
  401. Global Const DATA_ACTIONUNLOAD = 11
  402.  
  403.  
  404. 'OLE Client Control
  405. 'Actions
  406. Global Const OLE_CREATE_EMBED = 0
  407. Global Const OLE_CREATE_NEW = 0           'from ole1 control
  408. Global Const OLE_CREATE_LINK = 1
  409. Global Const OLE_CREATE_FROM_FILE = 1     'from ole1 control
  410. Global Const OLE_COPY = 4
  411. Global Const OLE_PASTE = 5
  412. Global Const OLE_UPDATE = 6
  413. Global Const OLE_ACTIVATE = 7
  414. Global Const OLE_CLOSE = 9
  415. Global Const OLE_DELETE = 10
  416. Global Const OLE_SAVE_TO_FILE = 11
  417. Global Const OLE_READ_FROM_FILE = 12
  418. Global Const OLE_INSERT_OBJ_DLG = 14
  419. Global Const OLE_PASTE_SPECIAL_DLG = 15
  420. Global Const OLE_FETCH_VERBS = 17
  421. Global Const OLE_SAVE_TO_OLE1FILE = 18
  422.  
  423. 'OLEType
  424. Global Const OLE_LINKED = 0
  425. Global Const OLE_EMBEDDED = 1
  426. Global Const OLE_NONE = 3
  427.  
  428. 'OLETypeAllowed
  429. Global Const OLE_EITHER = 2
  430.  
  431. 'UpdateOptions
  432. Global Const OLE_AUTOMATIC = 0
  433. Global Const OLE_FROZEN = 1
  434. Global Const OLE_MANUAL = 2
  435.  
  436. 'AutoActivate modes
  437. 'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that
  438. 'support "inside-out" activation.  See related Verb notes below.
  439. Global Const OLE_ACTIVATE_MANUAL = 0
  440. Global Const OLE_ACTIVATE_GETFOCUS = 1
  441. Global Const OLE_ACTIVATE_DOUBLECLICK = 2
  442.  
  443. 'SizeModes
  444. Global Const OLE_SIZE_CLIP = 0
  445. Global Const OLE_SIZE_STRETCH = 1
  446. Global Const OLE_SIZE_AUTOSIZE = 2
  447.  
  448. 'DisplayTypes
  449. Global Const OLE_DISPLAY_CONTENT = 0
  450. Global Const OLE_DISPLAY_ICON = 1
  451.  
  452. 'Update Event Constants
  453. Global Const OLE_CHANGED = 0
  454. Global Const OLE_SAVED = 1
  455. Global Const OLE_CLOSED = 2
  456. Global Const OLE_RENAMED = 3
  457.  
  458. 'Special Verb Values
  459. Global Const VERB_PRIMARY = 0
  460. Global Const VERB_SHOW = -1
  461. Global Const VERB_OPEN = -2
  462. Global Const VERB_HIDE = -3
  463. Global Const VERB_INPLACEUIACTIVATE = -4
  464. Global Const VERB_INPLACEACTIVATE = -5
  465. 'The last two verbs are for objects that support "inside-out" activation,
  466. 'meaning they can be edited in-place, and that they support being left
  467. 'in-place-active even when the input focus moves to another control or form.
  468. 'These objects actually have 2 levels of being active.  "InPlace Active"
  469. 'means that the object is ready for the user to click inside it and start
  470. 'working with it.  "In-Place UI-Active" means that, in addition, if the object
  471. 'has any other UI associated with it, such as floating palette windows,
  472. 'that those windows are visible and ready for use.  Any number of objects
  473. 'can be "In-Place Active" at a time, although only one can be
  474. '"InPlace UI-Active".
  475.  
  476. 'You can cause an object to move to either one of states programmatically by
  477. 'setting the Verb property to the appropriate verb and setting
  478. 'Action=OLE_ACTIVATE.
  479.  
  480. 'Also, if you set AutoActivate = OLE_ACTIVATE_GETFOCUS, the server will
  481. 'automatically be put into "InPlace UI-Active" state when the user clicks
  482. 'on or tabs into the control.
  483.  
  484. 'VerbFlag Bit Masks
  485. Global Const VERBFLAG_GRAYED = &H1
  486. Global Const VERBFLAG_DISABLED = &H2
  487. Global Const VERBFLAG_CHECKED = &H8
  488. Global Const VERBFLAG_SEPARATOR = &H800
  489.  
  490. 'MiscFlag Bits - Or these together as desired for special behaviors
  491.  
  492. 'MEMSTORAGE causes the control to use memory to store the object while
  493. '           it is loaded.  This is faster than the default (disk-tempfile),
  494. '           but can consume a lot of memory for objects whose data takes
  495. '           up a lot of space, such as the bitmap for a paint program.
  496. Global Const OLE_MISCFLAG_MEMSTORAGE = &H1
  497.  
  498. 'DISABLEINPLACE overrides the control's default behavior of allowing
  499. '           in-place activation for objects that support it.  If you
  500. '           are having problems activating an object inplace, you can
  501. '           force it to always activate in a separate window by setting this
  502. '           bit
  503. Global Const OLE_MISCFLAG_DISABLEINPLACE = &H2
  504.  
  505. 'Common Dialog Control
  506. 'Action Property
  507. Global Const DLG_FILE_OPEN = 1
  508. Global Const DLG_FILE_SAVE = 2
  509. Global Const DLG_COLOR = 3
  510. Global Const DLG_FONT = 4
  511. Global Const DLG_PRINT = 5
  512. Global Const DLG_HELP = 6
  513.  
  514. 'File Open/Save Dialog Flags
  515. Global Const OFN_READONLY = &H1&
  516. Global Const OFN_OVERWRITEPROMPT = &H2&
  517. Global Const OFN_HIDEREADONLY = &H4&
  518. Global Const OFN_NOCHANGEDIR = &H8&
  519. Global Const OFN_SHOWHELP = &H10&
  520. Global Const OFN_NOVALIDATE = &H100&
  521. Global Const OFN_ALLOWMULTISELECT = &H200&
  522. Global Const OFN_EXTENSIONDIFFERENT = &H400&
  523. Global Const OFN_PATHMUSTEXIST = &H800&
  524. Global Const OFN_FILEMUSTEXIST = &H1000&
  525. Global Const OFN_CREATEPROMPT = &H2000&
  526. Global Const OFN_SHAREAWARE = &H4000&
  527. Global Const OFN_NOREADONLYRETURN = &H8000&
  528.  
  529. 'Color Dialog Flags
  530. Global Const CC_RGBINIT = &H1&
  531. Global Const CC_FULLOPEN = &H2&
  532. Global Const CC_PREVENTFULLOPEN = &H4&
  533. Global Const CC_SHOWHELP = &H8&
  534.  
  535. 'Fonts Dialog Flags
  536. Global Const CF_SCREENFONTS = &H1&
  537. Global Const CF_PRINTERFONTS = &H2&
  538. Global Const CF_BOTH = &H3&
  539. Global Const CF_SHOWHELP = &H4&
  540. Global Const CF_INITTOLOGFONTSTRUCT = &H40&
  541. Global Const CF_USESTYLE = &H80&
  542. Global Const CF_EFFECTS = &H100&
  543. Global Const CF_APPLY = &H200&
  544. Global Const CF_ANSIONLY = &H400&
  545. Global Const CF_NOVECTORFONTS = &H800&
  546. Global Const CF_NOSIMULATIONS = &H1000&
  547. Global Const CF_LIMITSIZE = &H2000&
  548. Global Const CF_FIXEDPITCHONLY = &H4000&
  549. Global Const CF_WYSIWYG = &H8000&         'must also have CF_SCREENFONTS & CF_PRINTERFONTS
  550. Global Const CF_FORCEFONTEXIST = &H10000
  551. Global Const CF_SCALABLEONLY = &H20000
  552. Global Const CF_TTONLY = &H40000
  553. Global Const CF_NOFACESEL = &H80000
  554. Global Const CF_NOSTYLESEL = &H100000
  555. Global Const CF_NOSIZESEL = &H200000
  556.  
  557. 'Printer Dialog Flags
  558. Global Const PD_ALLPAGES = &H0&
  559. Global Const PD_SELECTION = &H1&
  560. Global Const PD_PAGENUMS = &H2&
  561. Global Const PD_NOSELECTION = &H4&
  562. Global Const PD_NOPAGENUMS = &H8&
  563. Global Const PD_COLLATE = &H10&
  564. Global Const PD_PRINTTOFILE = &H20&
  565. Global Const PD_PRINTSETUP = &H40&
  566. Global Const PD_NOWARNING = &H80&
  567. Global Const PD_RETURNDC = &H100&
  568. Global Const PD_RETURNIC = &H200&
  569. Global Const PD_RETURNDEFAULT = &H400&
  570. Global Const PD_SHOWHELP = &H800&
  571. Global Const PD_USEDEVMODECOPIES = &H40000
  572. Global Const PD_DISABLEPRINTTOFILE = &H80000
  573. Global Const PD_HIDEPRINTTOFILE = &H100000
  574.  
  575. 'Help Constants
  576. Global Const HELP_CONTEXT = &H1           'Display topic in ulTopic
  577. Global Const HELP_QUIT = &H2              'Terminate help
  578. Global Const HELP_INDEX = &H3             'Display index
  579. Global Const HELP_CONTENTS = &H3
  580. Global Const HELP_HELPONHELP = &H4        'Display help on using help
  581. Global Const HELP_SETINDEX = &H5          'Set the current Index for multi index help
  582. Global Const HELP_SETCONTENTS = &H5
  583. Global Const HELP_CONTEXTPOPUP = &H8
  584. Global Const HELP_FORCEFILE = &H9
  585. Global Const HELP_KEY = &H101             'Display topic for keyword in offabData
  586. Global Const HELP_COMMAND = &H102
  587. Global Const HELP_PARTIALKEY = &H105      'call the search engine in winhelp
  588.  
  589. 'Error Constants
  590. Global Const CDERR_DIALOGFAILURE = -32768
  591.  
  592. Global Const CDERR_GENERALCODES = &H7FFF
  593. Global Const CDERR_STRUCTSIZE = &H7FFE
  594. Global Const CDERR_INITIALIZATION = &H7FFD
  595. Global Const CDERR_NOTEMPLATE = &H7FFC
  596. Global Const CDERR_NOHINSTANCE = &H7FFB
  597. Global Const CDERR_LOADSTRFAILURE = &H7FFA
  598. Global Const CDERR_FINDRESFAILURE = &H7FF9
  599. Global Const CDERR_LOADRESFAILURE = &H7FF8
  600. Global Const CDERR_LOCKRESFAILURE = &H7FF7
  601. Global Const CDERR_MEMALLOCFAILURE = &H7FF6
  602. Global Const CDERR_MEMLOCKFAILURE = &H7FF5
  603. Global Const CDERR_NOHOOK = &H7FF4
  604.  
  605. 'Added for CMDIALOG.VBX
  606. Global Const CDERR_CANCEL = &H7FF3
  607. Global Const CDERR_NODLL = &H7FF2
  608. Global Const CDERR_ERRPROC = &H7FF1
  609. Global Const CDERR_ALLOC = &H7FF0
  610. Global Const CDERR_HELP = &H7FEF
  611.  
  612. Global Const PDERR_PRINTERCODES = &H6FFF
  613. Global Const PDERR_SETUPFAILURE = &H6FFE
  614. Global Const PDERR_PARSEFAILURE = &H6FFD
  615. Global Const PDERR_RETDEFFAILURE = &H6FFC
  616. Global Const PDERR_LOADDRVFAILURE = &H6FFB
  617. Global Const PDERR_GETDEVMODEFAIL = &H6FFA
  618. Global Const PDERR_INITFAILURE = &H6FF9
  619. Global Const PDERR_NODEVICES = &H6FF8
  620. Global Const PDERR_NODEFAULTPRN = &H6FF7
  621. Global Const PDERR_DNDMMISMATCH = &H6FF6
  622. Global Const PDERR_CREATEICFAILURE = &H6FF5
  623. Global Const PDERR_PRINTERNOTFOUND = &H6FF4
  624.  
  625. Global Const CFERR_CHOOSEFONTCODES = &H5FFF
  626. Global Const CFERR_NOFONTS = &H5FFE
  627.  
  628. Global Const FNERR_FILENAMECODES = &H4FFF
  629. Global Const FNERR_SUBCLASSFAILURE = &H4FFE
  630. Global Const FNERR_INVALIDFILENAME = &H4FFD
  631. Global Const FNERR_BUFFERTOOSMALL = &H4FFC
  632.  
  633. Global Const FRERR_FINDREPLACECODES = &H3FFF
  634. Global Const CCERR_CHOOSECOLORCODES = &H2FFF
  635.  
  636.  
  637. '---------------------------------------------------------
  638. '      Table of Contents for Visual Basic Professional
  639. '
  640. '       1.  3-D Controls
  641. '           (Frame/Panel/Option/Check/Command/Group Push)
  642. '       2.  Animated Button
  643. '       3.  Gauge Control
  644. '       4.  Graph Control Section
  645. '       5.  Key Status Control
  646. '       6.  Spin Button
  647. '       7.  MCI Control (Multimedia)
  648. '       8.  Masked Edit Control
  649. '       9.  Comm Control
  650. '       10. Outline Control
  651. '---------------------------------------------------------
  652.  
  653.  
  654. '-------------------------------------------------------------------
  655. '3D Controls
  656. '-------------------------------------------------------------------
  657. 'Alignment (Check Box)
  658. Global Const SSCB_TEXT_RIGHT = 0         '0 - Text to the right
  659. Global Const SSCB_TEXT_LEFT = 1          '1 - Text to the left
  660.  
  661. 'Alignment (Option Button)
  662. Global Const SSOB_TEXT_RIGHT = 0         '0 - Text to the right
  663. Global Const SSOB_TEXT_LEFT = 1          '1 - Text to the left
  664.  
  665. 'Alignment (Frame)
  666. Global Const SSFR_LEFT_JUSTIFY = 0       '0 - Left justify text
  667. Global Const SSFR_RIGHT_JUSTIFY = 1      '1 - Right justify text
  668. Global Const SSFR_CENTER = 2             '2 - Center text
  669.  
  670. 'Alignment (Panel)
  671. Global Const SSPN_LEFT_TOP = 0           '0 - Text to left and top
  672. Global Const SSPN_LEFT_MIDDLE = 1        '1 - Text to left and middle
  673. Global Const SSPN_LEFT_BOTTOM = 2        '2 - Text to left and bottom
  674. Global Const SSPN_RIGHT_TOP = 3          '3 - Text to right and top
  675. Global Const SSPN_RIGHT_MIDDLE = 4       '4 - Text to right and middle
  676. Global Const SSPN_RIGHT_BOTTOM = 5       '5 - Text to right and bottom
  677. Global Const SSPN_CENTER_TOP = 6         '6 - Text to center and top
  678. Global Const SSPN_CENTER_MIDDLE = 7      '7 - Text to center and middle
  679. Global Const SSPN_CENTER_BOTTOM = 8      '8 - Text to center and bottom
  680.  
  681. 'Autosize (Command Button)
  682. Global Const SS_AUTOSIZE_NONE = 0        '0 - No Autosizing
  683. Global Const SSPB_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button
  684. Global Const SSPB_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture
  685.  
  686. 'Autosize (Ribbon Button)
  687. 'Global Const SS_AUTOSIZE_NONE      = 0  '0 - No Autosizing
  688. Global Const SSRI_AUTOSIZE_PICTOBUT = 1  '0 - Autosize Picture to Button
  689. Global Const SSRI_AUTOSIZE_BUTTOPIC = 2  '0 - Autosize Button to Picture
  690.  
  691. 'Autosize (Panel)
  692. 'Global Const SS_AUTOSIZE_NONE    = 0    '0 - No Autosizing
  693. Global Const SSPN_AUTOSIZE_WIDTH = 1     '1 - Autosize Panel width to Caption
  694. Global Const SSPN_AUTOSIZE_HEIGHT = 2    '2 - Autosize Panel height to Caption
  695. Global Const SSPN_AUTOSIZE_CHILD = 3     '3 - Autosize Child to Panel
  696.  
  697. 'BevelInner (Panel)
  698. Global Const SS_BEVELINNER_NONE = 0      '0 - No Inner Bevel
  699. Global Const SS_BEVELINNER_INSET = 1     '1 - Inset Inner Bevel
  700. Global Const SS_BEVELINNER_RAISED = 2    '2 - Raised Inner Bevel
  701.  
  702. 'BevelOuter (Panel)
  703. Global Const SS_BEVELOUTER_NONE = 0      '0 - No Outer Bevel
  704. Global Const SS_BEVELOUTER_INSET = 1     '1 - Inset Outer Bevel
  705. Global Const SS_BEVELOUTER_RAISED = 2    '2 - Raised Outer Bevel
  706.  
  707. 'FloodType (Panel)
  708. Global Const SS_FLOODTYPE_NONE = 0       '0 - No flood
  709. Global Const SS_FLOODTYPE_L_TO_R = 1     '1 - Left to light
  710. Global Const SS_FLOODTYPE_R_TO_L = 2     '2 - Right to left
  711. Global Const SS_FLOODTYPE_T_TO_B = 3     '3 - Top to bottom
  712. Global Const SS_FLOODTYPE_B_TO_T = 4     '4 - Bottom to top
  713. Global Const SS_FLOODTYPE_CIRCLE = 5     '5 - Widening circle
  714.  
  715. 'Font3D (Panel, Command Button, Option Button, Check Box, Frame)
  716. Global Const SS_FONT3D_NONE = 0          '0 - No 3-D text
  717. Global Const SS_FONT3D_RAISED_LIGHT = 1  '1 - Raised with light shading
  718. Global Const SS_FONT3D_RAISED_HEAVY = 2  '2 - Raised with heavy shading
  719. Global Const SS_FONT3D_INSET_LIGHT = 3   '3 - Inset with light shading
  720. Global Const SS_FONT3D_INSET_HEAVY = 4   '4 - Inset with heavy shading
  721.  
  722. 'PictureDnChange (Ribbon Button)
  723. Global Const SS_PICDN_NOCHANGE = 0       '0 - Use 'Up'bitmap with no change
  724. Global Const SS_PICDN_DITHER = 1         '1 - Dither 'Up'bitmap
  725. Global Const SS_PICDN_INVERT = 2         '2 - Invert 'Up'bitmap
  726.  
  727. 'ShadowColor (Panel, Frame)
  728. Global Const SS_SHADOW_DARKGREY = 0      '0 - Dark grey shadow
  729. Global Const SS_SHADOW_BLACK = 1         '1 - Black shadow
  730.  
  731. 'ShadowStyle (Frame)
  732. Global Const SS_SHADOW_INSET = 0         '0 - Shadow inset
  733. Global Const SS_SHADOW_RAISED = 1        '1 - Shadow raised
  734.  
  735.  
  736. '---------------------------------------
  737. 'Animated Button
  738. '---------------------------------------
  739. 'Cycle property
  740. Global Const ANI_ANIMATED = 0
  741. Global Const ANI_MULTISTATE = 1
  742. Global Const ANI_TWO_STATE = 2
  743.  
  744. 'Click Filter property
  745. Global Const ANI_ANYWHERE = 0
  746. Global Const ANI_IMAGE_AND_TEXT = 1
  747. Global Const ANI_IMAGE = 2
  748. Global Const ANI_TEXT = 3
  749.  
  750. 'PicDrawMode Property
  751. Global Const ANI_XPOS_YPOS = 0
  752. Global Const ANI_AUTOSIZE = 1
  753. Global Const ANI_STRETCH = 2
  754.  
  755. 'SpecialOp Property
  756. Global Const ANI_CLICK = 1
  757.  
  758. 'TextPosition Property
  759. Global Const ANI_CENTER = 0
  760. Global Const ANI_LEFT = 1
  761. Global Const ANI_RIGHT = 2
  762. Global Const ANI_BOTTON = 3
  763. Global Const ANI_TOP = 4
  764.  
  765.  
  766. '---------------------------------------
  767. 'GAUGE
  768. '---------------------------------------
  769. 'Style Property
  770. Global Const GAUGE_HORIZ = 0
  771. Global Const GAUGE_VERT = 1
  772. Global Const GAUGE_SEMI = 2
  773. Global Const GAUGE_FULL = 3
  774.  
  775.  
  776. '----------------------------------------
  777. 'Graph Control
  778. '----------------------------------------
  779. 'General
  780. Global Const G_NONE = 0
  781. Global Const G_DEFAULT = 0
  782.  
  783. Global Const G_OFF = 0
  784. Global Const G_ON = 1
  785.  
  786. Global Const G_MONO = 0
  787. Global Const G_COLOR = 1
  788.  
  789. 'Graph Types
  790. Global Const G_PIE2D = 1
  791. Global Const G_PIE3D = 2
  792. Global Const G_BAR2D = 3
  793. Global Const G_BAR3D = 4
  794. Global Const G_GANTT = 5
  795. Global Const G_LINE = 6
  796. Global Const G_LOGLIN = 7
  797. Global Const G_AREA = 8
  798. Global Const G_SCATTER = 9
  799. Global Const G_POLAR = 10
  800. Global Const G_HLC = 11
  801.  
  802. 'Colors
  803. Global Const G_BLACK = 0
  804. Global Const G_BLUE = 1
  805. Global Const G_GREEN = 2
  806. Global Const G_CYAN = 3
  807. Global Const G_RED = 4
  808. Global Const G_MAGENTA = 5
  809. Global Const G_BROWN = 6
  810. Global Const G_LIGHT_GRAY = 7
  811. Global Const G_DARK_GRAY = 8
  812. Global Const G_LIGHT_BLUE = 9
  813. Global Const G_LIGHT_GREEN = 10
  814. Global Const G_LIGHT_CYAN = 11
  815. Global Const G_LIGHT_RED = 12
  816. Global Const G_LIGHT_MAGENTA = 13
  817. Global Const G_YELLOW = 14
  818. Global Const G_WHITE = 15
  819. Global Const G_AUTOBW = 16
  820.  
  821. 'Patterns
  822. Global Const G_SOLID = 0
  823. Global Const G_HOLLOW = 1
  824. Global Const G_HATCH1 = 2
  825. Global Const G_HATCH2 = 3
  826. Global Const G_HATCH3 = 4
  827. Global Const G_HATCH4 = 5
  828. Global Const G_HATCH5 = 6
  829. Global Const G_HATCH6 = 7
  830. Global Const G_BITMAP1 = 16
  831. Global Const G_BITMAP2 = 17
  832. Global Const G_BITMAP3 = 18
  833. Global Const G_BITMAP4 = 19
  834. Global Const G_BITMAP5 = 20
  835. Global Const G_BITMAP6 = 21
  836. Global Const G_BITMAP7 = 22
  837. Global Const G_BITMAP8 = 23
  838. Global Const G_BITMAP9 = 24
  839. Global Const G_BITMAP10 = 25
  840. Global Const G_BITMAP11 = 26
  841. Global Const G_BITMAP12 = 27
  842. Global Const G_BITMAP13 = 28
  843. Global Const G_BITMAP14 = 29
  844. Global Const G_BITMAP15 = 30
  845. Global Const G_BITMAP16 = 31
  846.  
  847. 'Symbols
  848. Global Const G_CROSS_PLUS = 0
  849. Global Const G_CROSS_TIMES = 1
  850. Global Const G_TRIANGLE_UP = 2
  851. Global Const G_SOLID_TRIANGLE_UP = 3
  852. Global Const G_TRIANGLE_DOWN = 4
  853. Global Const G_SOLID_TRIANGLE_DOWN = 5
  854. Global Const G_SQUARE = 6
  855. Global Const G_SOLID_SQUARE = 7
  856. Global Const G_DIAMOND = 8
  857. Global Const G_SOLID_DIAMOND = 9
  858.  
  859. 'Line Styles
  860. 'Global Const G_SOLID = 0
  861. Global Const G_DASH = 1
  862. Global Const G_DOT = 2
  863. Global Const G_DASHDOT = 3
  864. Global Const G_DASHDOTDOT = 4
  865.  
  866. 'Grids
  867. Global Const G_HORIZONTAL = 1
  868. Global Const G_VERTICAL = 2
  869.  
  870. 'Statistics
  871. Global Const G_MEAN = 1
  872. Global Const G_MIN_MAX = 2
  873. Global Const G_STD_DEV = 4
  874. Global Const G_BEST_FIT = 8
  875.  
  876. 'Data Arrays
  877. Global Const G_GRAPH_DATA = 1
  878. Global Const G_COLOR_DATA = 2
  879. Global Const G_EXTRA_DATA = 3
  880. Global Const G_LABEL_TEXT = 4
  881. Global Const G_LEGEND_TEXT = 5
  882. Global Const G_PATTERN_DATA = 6
  883. Global Const G_SYMBOL_DATA = 7
  884. Global Const G_XPOS_DATA = 8
  885. Global Const G_ALL_DATA = 9
  886.  
  887. 'Draw Mode
  888. Global Const G_NO_ACTION = 0
  889. Global Const G_CLEAR = 1
  890. Global Const G_DRAW = 2
  891. Global Const G_BLIT = 3
  892. Global Const G_COPY = 4
  893. Global Const G_PRINT = 5
  894. Global Const G_WRITE = 6
  895.  
  896. 'Print Options
  897. Global Const G_BORDER = 2
  898.  
  899. 'Pie Chart Options             '
  900. Global Const G_NO_LINES = 1
  901. Global Const G_COLORED = 2
  902. Global Const G_PERCENTS = 4
  903.  
  904. 'Bar Chart Options             '
  905. 'Global Const G_HORIZONTAL = 1
  906. Global Const G_STACKED = 2
  907. Global Const G_PERCENTAGE = 4
  908. Global Const G_Z_CLUSTERED = 6
  909.  
  910. 'Gantt Chart Options           '
  911. Global Const G_SPACED_BARS = 1
  912.  
  913. 'Line/Polar Chart Options      '
  914. Global Const G_SYMBOLS = 1
  915. Global Const G_STICKS = 2
  916. Global Const G_LINES = 4
  917.  
  918. 'Area Chart Options            '
  919. Global Const G_ABSOLUTE = 1
  920. Global Const G_PERCENT = 2
  921.  
  922. 'HLC Chart Options             '
  923. Global Const G_NO_CLOSE = 1
  924. Global Const G_NO_HIGH_LOW = 2
  925.  
  926.  
  927. '---------------------------------------
  928. 'Key Status Control
  929. '---------------------------------------
  930. 'Style
  931. Global Const KEYSTAT_CAPSLOCK = 0
  932. Global Const KEYSTAT_NUMLOCK = 1
  933. Global Const KEYSTAT_INSERT = 2
  934. Global Const KEYSTAT_SCROLLLOCK = 3
  935.  
  936.  
  937. '---------------------------------------
  938. 'MCI Control (Multimedia)
  939. '---------------------------------------
  940. 'NOTE:
  941. 'Please use the updated Multimedia constants
  942. 'in the WINMMSYS.TXT file from the \VB\WINAPI
  943. 'subdirectory.
  944.  
  945. 'Mode Property
  946. 'Global Const MCI_MODE_NOT_OPEN = 11
  947. 'Global Const MCI_MODE_STOP = 12
  948. 'Global Const MCI_MODE_PLAY = 13
  949. 'Global Const MCI_MODE_RECORD = 14
  950. 'Global Const MCI_MODE_SEEK = 15
  951. 'Global Const MCI_MODE_PAUSE = 16
  952. 'Global Const MCI_MODE_READY = 17
  953.  
  954. 'NotifyValue Property
  955. 'Global Const MCI_NOTIFY_SUCCESSFUL = 1
  956. 'Global Const MCI_NOTIFY_SUPERSEDED = 2
  957. 'Global Const MCI_ABORTED = 4
  958. 'Global Const MCI_FAILURE = 8
  959.  
  960. 'Orientation Property
  961. 'Global Const MCI_ORIENT_HORZ = 0
  962. 'Global Const MCI_ORIENT_VERT = 1
  963.  
  964. 'RecordMode Porperty
  965. 'Global Const MCI_RECORD_INSERT = 0
  966. 'Global Const MCI_RECORD_OVERWRITE = 1
  967.  
  968. 'TimeFormat Property
  969. 'Global Const MCI_FORMAT_MILLISECONDS = 0
  970. 'Global Const MCI_FORMAT_HMS = 1
  971. 'Global Const MCI_FORMAT_MSF = 2
  972. 'Global Const MCI_FORMAT_FRAMES = 3
  973. 'Global Const MCI_FORMAT_SMPTE_24 = 4
  974. 'Global Const MCI_FORMAT_SMPTE_25 = 5
  975. 'Global Const MCI_FORMAT_SMPTE_30 = 6
  976. 'Global Const MCI_FORMAT_SMPTE_30DROP = 7
  977. 'Global Const MCI_FORMAT_BYTES = 8
  978. 'Global Const MCI_FORMAT_SAMPLES = 9
  979. 'Global Const MCI_FORMAT_TMSF = 10
  980.  
  981.  
  982. '---------------------------------------
  983. 'Spin Button
  984. '---------------------------------------
  985. 'SpinOrientation
  986. Global Const SPIN_VERTICAL = 0
  987. Global Const SPIN_HORIZONTAL = 1
  988.  
  989.  
  990. '---------------------------------------
  991. 'Masked Edit Control
  992. '---------------------------------------
  993. 'ClipMode
  994. Global Const ME_INCLIT = 0
  995. Global Const ME_EXCLIT = 1
  996.  
  997.  
  998. '---------------------------------------
  999. 'Comm Control
  1000. '---------------------------------------
  1001. 'Handshaking
  1002. Global Const MSCOMM_HANDSHAKE_NONE = 0
  1003. Global Const MSCOMM_HANDSHAKE_XONXOFF = 1
  1004. Global Const MSCOMM_HANDSHAKE_RTS = 2
  1005. Global Const MSCOMM_HANDSHAKE_RTSXONXOFF = 3
  1006.  
  1007. 'Event constants
  1008. Global Const MSCOMM_EV_SEND = 1
  1009. Global Const MSCOMM_EV_RECEIVE = 2
  1010. Global Const MSCOMM_EV_CTS = 3
  1011. Global Const MSCOMM_EV_DSR = 4
  1012. Global Const MSCOMM_EV_CD = 5
  1013. Global Const MSCOMM_EV_RING = 6
  1014. Global Const MSCOMM_EV_EOF = 7
  1015.  
  1016. 'Error code constants
  1017. Global Const MSCOMM_ER_BREAK = 1001
  1018. Global Const MSCOMM_ER_CTSTO = 1002
  1019. Global Const MSCOMM_ER_DSRTO = 1003
  1020. Global Const MSCOMM_ER_FRAME = 1004
  1021. Global Const MSCOMM_ER_OVERRUN = 1006
  1022. Global Const MSCOMM_ER_CDTO = 1007
  1023. Global Const MSCOMM_ER_RXOVER = 1008
  1024. Global Const MSCOMM_ER_RXPARITY = 1009
  1025. Global Const MSCOMM_ER_TXFULL = 1010
  1026.  
  1027.  
  1028. '---------------------------------------
  1029. ' MAPI SESSION CONTROL CONSTANTS
  1030. '---------------------------------------
  1031. 'Action
  1032. Global Const SESSION_SIGNON = 1
  1033. Global Const SESSION_SIGNOFF = 2
  1034.  
  1035.  
  1036. '---------------------------------------
  1037. ' MAPI MESSAGE CONTROL CONSTANTS
  1038. '---------------------------------------
  1039. 'Action
  1040. Global Const MESSAGE_FETCH = 1             ' Load all messages from message store
  1041. Global Const MESSAGE_SENDDLG = 2           ' Send mail bring up default mapi dialog
  1042. Global Const MESSAGE_SEND = 3              ' Send mail without default mapi dialog
  1043. Global Const MESSAGE_SAVEMSG = 4           ' Save message in the compose buffer
  1044. Global Const MESSAGE_COPY = 5              ' Copy current message to compose buffer
  1045. Global Const MESSAGE_COMPOSE = 6           ' Initialize compose buffer (previous
  1046.                        ' data is lost
  1047. Global Const MESSAGE_REPLY = 7             ' Fill Compose buffer as REPLY
  1048. Global Const MESSAGE_REPLYALL = 8          ' Fill Compose buffer as REPLY ALL
  1049. Global Const MESSAGE_FORWARD = 9           ' Fill Compose buffer as FORWARD
  1050. Global Const MESSAGE_DELETE = 10           ' Delete current message
  1051. Global Const MESSAGE_SHOWADBOOK = 11       ' Show Address book
  1052. Global Const MESSAGE_SHOWDETAILS = 12      ' Show details of the current recipient
  1053. Global Const MESSAGE_RESOLVENAME = 13      ' Resolve the display name of the recipient
  1054. Global Const RECIPIENT_DELETE = 14            ' Fill Compose buffer as FORWARD
  1055. Global Const ATTACHMENT_DELETE = 15          ' Delete current message
  1056.  
  1057.  
  1058. '---------------------------------------
  1059. '  ERROR CONSTANT DECLARATIONS (MAPI CONTROLS)
  1060. '---------------------------------------
  1061. Global Const SUCCESS_SUCCESS = 32000
  1062. Global Const MAPI_USER_ABORT = 32001
  1063. Global Const MAPI_E_FAILURE = 32002
  1064. Global Const MAPI_E_LOGIN_FAILURE = 32003
  1065. Global Const MAPI_E_DISK_FULL = 32004
  1066. Global Const MAPI_E_INSUFFICIENT_MEMORY = 32005
  1067. Global Const MAPI_E_ACCESS_DENIED = 32006
  1068. Global Const MAPI_E_TOO_MANY_SESSIONS = 32008
  1069. Global Const MAPI_E_TOO_MANY_FILES = 32009
  1070. Global Const MAPI_E_TOO_MANY_RECIPIENTS = 32010
  1071. Global Const MAPI_E_ATTACHMENT_NOT_FOUND = 32011
  1072. Global Const MAPI_E_ATTACHMENT_OPEN_FAILURE = 32012
  1073. Global Const MAPI_E_ATTACHMENT_WRITE_FAILURE = 32013
  1074. Global Const MAPI_E_UNKNOWN_RECIPIENT = 32014
  1075. Global Const MAPI_E_BAD_RECIPTYPE = 32015
  1076. Global Const MAPI_E_NO_MESSAGES = 32016
  1077. Global Const MAPI_E_INVALID_MESSAGE = 32017
  1078. Global Const MAPI_E_TEXT_TOO_LARGE = 32018
  1079. Global Const MAPI_E_INVALID_SESSION = 32019
  1080. Global Const MAPI_E_TYPE_NOT_SUPPORTED = 32020
  1081. Global Const MAPI_E_AMBIGUOUS_RECIPIENT = 32021
  1082. Global Const MAPI_E_MESSAGE_IN_USE = 32022
  1083. Global Const MAPI_E_NETWORK_FAILURE = 32023
  1084. Global Const MAPI_E_INVALID_EDITFIELDS = 32024
  1085. Global Const MAPI_E_INVALID_RECIPS = 32025
  1086. Global Const MAPI_E_NOT_SUPPORTED = 32026
  1087.  
  1088. Global Const CONTROL_E_SESSION_EXISTS = 32050
  1089. Global Const CONTROL_E_INVALID_BUFFER = 32051
  1090. Global Const CONTROL_E_INVALID_READ_BUFFER_ACTION = 32052
  1091. Global Const CONTROL_E_NO_SESSION = 32053
  1092. Global Const CONTROL_E_INVALID_RECIPIENT = 32054
  1093. Global Const CONTROL_E_INVALID_COMPOSE_BUFFER_ACTION = 32055
  1094. Global Const CONTROL_E_FAILURE = 32056
  1095. Global Const CONTROL_E_NO_RECIPIENTS = 32057
  1096. Global Const CONTROL_E_NO_ATTACHMENTS = 32058
  1097.  
  1098.  
  1099. '---------------------------------------
  1100. '  MISCELLANEOUS GLOBAL CONSTANT DECLARATIONS (MAPI CONTROLS)
  1101. '---------------------------------------
  1102. Global Const RECIPTYPE_ORIG = 0
  1103. Global Const RECIPTYPE_TO = 1
  1104. Global Const RECIPTYPE_CC = 2
  1105. Global Const RECIPTYPE_BCC = 3
  1106.  
  1107. Global Const ATTACHTYPE_DATA = 0
  1108. Global Const ATTACHTYPE_EOLE = 1
  1109. Global Const ATTACHTYPE_SOLE = 2
  1110.  
  1111.  
  1112. '-------------------------------------------------
  1113. '  Outline
  1114. '-------------------------------------------------
  1115. ' PictureType
  1116. Global Const MSOUTLINE_PICTURE_CLOSED = 0
  1117. Global Const MSOUTLINE_PICTURE_OPEN = 1
  1118. Global Const MSOUTLINE_PICTURE_LEAF = 2
  1119.  
  1120. 'Outline Control Error Constants
  1121. Global Const MSOUTLINE_BADPICFORMAT = 32000
  1122. Global Const MSOUTLINE_BADINDENTATION = 32001
  1123. Global Const MSOUTLINE_MEM = 32002
  1124. Global Const MSOUTLINE_PARENTNOTEXPANDED = 32003
  1125.  
  1126.  
  1127. '
  1128. ' Data Access constants
  1129. '
  1130.  
  1131. ' Option argument values (CreateDynaset, etc)
  1132. Global Const DB_DENYWRITE = &H1
  1133. Global Const DB_DENYREAD = &H2
  1134. Global Const DB_READONLY = &H4
  1135. Global Const DB_APPENDONLY = &H8
  1136. Global Const DB_INCONSISTENT = &H10
  1137. Global Const DB_CONSISTENT = &H20
  1138. Global Const DB_SQLPASSTHROUGH = &H40
  1139.  
  1140. ' SetDataAccessOption
  1141. Global Const DB_OPTIONINIPATH = 1
  1142.  
  1143. ' Field Attributes
  1144. Global Const DB_FIXEDFIELD = &H1
  1145. Global Const DB_VARIABLEFIELD = &H2
  1146. Global Const DB_AUTOINCRFIELD = &H10
  1147. Global Const DB_UPDATABLEFIELD = &H20
  1148.  
  1149. ' Field Data Types
  1150. Global Const DB_BOOLEAN = 1
  1151. Global Const DB_BYTE = 2
  1152. Global Const DB_INTEGER = 3
  1153. Global Const DB_LONG = 4
  1154. Global Const DB_CURRENCY = 5
  1155. Global Const DB_SINGLE = 6
  1156. Global Const DB_DOUBLE = 7
  1157. Global Const DB_DATE = 8
  1158. Global Const DB_TEXT = 10
  1159. Global Const DB_LONGBINARY = 11
  1160. Global Const DB_MEMO = 12
  1161.  
  1162. ' TableDef Attributes
  1163. Global Const DB_ATTACHEXCLUSIVE = &H10000
  1164. Global Const DB_ATTACHSAVEPWD = &H20000
  1165. Global Const DB_SYSTEMOBJECT = &H80000000
  1166. Global Const DB_ATTACHEDTABLE = &H40000000
  1167. Global Const DB_ATTACHEDODBC = &H20000000
  1168.  
  1169. ' ListTables TableType
  1170. Global Const DB_TABLE = 1
  1171. Global Const DB_QUERYDEF = 5
  1172.  
  1173. ' ListTables Attributes (for QueryDefs)
  1174. Global Const DB_QACTION = &HF0
  1175. Global Const DB_QCROSSTAB = &H10
  1176. Global Const DB_QDELETE = &H20
  1177. Global Const DB_QUPDATE = &H30
  1178. Global Const DB_QAPPEND = &H40
  1179. Global Const DB_QMAKETABLE = &H50
  1180.  
  1181. ' ListIndexes IndexAttributes values
  1182. Global Const DB_UNIQUE = 1
  1183. Global Const DB_PRIMARY = 2
  1184. Global Const DB_PROHIBITNULL = 4
  1185. Global Const DB_IGNORENULL = 8
  1186. ' ListIndexes FieldAttributes value
  1187. Global Const DB_DESCENDING = 1  'For each field in Index
  1188.  
  1189. ' CreateDatabase and CompactDatabase Language constants
  1190. Global Const DB_LANG_GENERAL = ";LANGID=0x0809;CP=1252;COUNTRY=0"
  1191. Global Const DB_LANG_SPANISH = ";LANGID=0x040A;CP=1252;COUNTRY=0"
  1192. Global Const DB_LANG_DUTCH = ";LANGID=0x0413;CP=1252;COUNTRY=0"
  1193. Global Const DB_LANG_SWEDFIN = ";LANGID=0x040C;CP=1252;COUNTRY=0"   'VB3 and Access 1.1 Databases
  1194. Global Const DB_LANG_NORWDAN = ";LANGID=0x0414;CP=1252;COUNTRY=0"   'VB3 and Access 1.1 Databases
  1195. Global Const DB_LANG_ICELANDIC = ";LANGID=0x040F;CP=1252;COUNTRY=0" 'VB3 and Access 1.1 Databases
  1196. Global Const DB_LANG_NORDIC = ";LANGID=0x041D;CP=1252;COUNTRY=0"    'Access 1.0 Databases only
  1197.  
  1198. ' CreateDatabase and CompactDatabase options
  1199. Global Const DB_VERSION10 = 1        ' Microsoft Access Version 1.0
  1200. Global Const DB_ENCRYPT = 2          ' Make database encrypted.
  1201. Global Const DB_DECRYPT = 4          ' Decrypt database while compacting.
  1202.  
  1203. 'Collating order values
  1204. Global Const DB_SORTGENERAL = 256    ' Sort by EFGPI rules (English, French, German,Portuguese, Italian)
  1205. Global Const DB_SORTSPANISH = 258    ' Sort by Spanish rules
  1206. Global Const DB_SORTDUTCH = 259      ' Sort by Dutch rules
  1207. Global Const DB_SORTSWEDFIN = 260    ' Sort by Swedish, Finnish rules
  1208. Global Const DB_SORTNORWDAN = 261    ' Sort by Norwegian, Danish rules
  1209. Global Const DB_SORTICELANDIC = 262  ' Sort by Icelandic rules
  1210. Global Const DB_SORTPDXINTL = 4096   ' Sort by Paradox international rules
  1211. Global Const DB_SORTPDXSWE = 4097    ' Sort by Paradox Swedish, Finnish rules
  1212. Global Const DB_SORTPDXNOR = 4098    ' Sort by Paradox Norwegian, Danish rules
  1213. Global Const DB_SORTUNDEFINED = -1   ' Sort rules are undefined or unknown
  1214.  
  1215.